package task2

import scala.util.Random

class Computer(var name: String, /*override */var score: Int) /*extends Player(name, score)*/{

  /*override*/ def showFist(): String = {
    val lst = Array("剪刀", "石头", "布")
    val fist = lst(Random.nextInt(lst.length))
    println(s"$name 出拳： $fist")
    fist
  }
}
